package com.yejiali.backend.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.yejiali.backend.entity.VideoLikes;
import com.yejiali.backend.entity.vo.VideoLikeVO;
import com.yejiali.backend.response.Response;

import java.util.List;

/**
 * 视频点赞表(VideoLikes)表服务接口
 *
 * @author yejiali
 * @since 2025-08-15 09:25:28
 */
public interface VideoLikesService extends IService<VideoLikes>{
    /**
     * 点赞视频
     */
    Response<String> likeVideo(Long userId, Long videoId) throws JsonProcessingException;

    /**
     * 取消点赞视频
     * @param userId
     * @param videoId
     * @return
     */

    Response<String> unlikeVideo(Long userId, Long videoId);

    /**
     * 查询收到视频点赞消息
     * @param userId
     * @return
     */
    Response<List<VideoLikeVO>> receiveLikeVideo(Long userId);

    /**
     * 逻辑删除收到的视频点赞通知
     * @param videoId
     * @return
     */
    Response<String> deleteLikeVideo(Long videoId);
}
